<?php
class Core_Registry{
		
		
		private static $REG_DATA;
		
//***************************************************************************************
		public static function write($key, $value)
		{
			if (self::$REG_DATA == null) 
				self::$REG_DATA = array();
		
			self::$REG_DATA[$key] = $value;
		}
		
//***************************************************************************************
		public static function read($key)
		{
			return self::$REG_DATA[$key];
		}
		
//***************************************************************************************
		public static function __toArray()
		{

			return self::$REG_DATA;
		}
}